a = int(input())
b = str(a)
c = float(a)
d = a ** 2 #表示 a 的几次方
print(f"hello {a} {b} {c} {d}")
print("hello\tworld\nhuanhang")
print("buhuanghan",end="" )
print("---meiyouhuanhan")
print("\n")
# && is and
# || is or
#  ! is not
s1 = "nihao"
s2 = "woshishei" 
print(s1)
print(s2)
print(s1+s2)
print(s1 + s2 * 2)#  *表示重复
if not a%2:
    print("shioushu")
else:
    print("bushioushu")

e=0
while e<10:
    e+=1
print(e)

#[0,1,2,3,4,5,6,7,8,9]
for i in range(10):
    print(i,end="")

for i in s2:
    print(i)
else:
    print("循环正常结束")

f = "my name is xxx"
g = f[1:5] #左闭右开
print(g)
g = f[1:5:2] #第三个数表示隔几个，2为隔一个，1表示连续,若果为-1 则表示为把字符串给反过来
print(g)
g = f[::-1]
print(g)
g = f.replace("xxx","pig")
print(g)
g = f.split(" ")
for i in g:
    print(i,end="")
print("\n")
#[]是列表，（）是元组，{}是集合, {"small":1,"big":2} 是字典
a = {"small":1,"big":2}
print(a["small"])
for x,y in a.items():
    print(f"{x} ",end="")
    print(y)

def day():
    print("get up")
    print("dream")

day()